package com.neuedu.mblog.controller;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.SQLException;

/**
 * 项目：mblog_java4
 * 创建时间：  2022-01-01   10:01
 * 作者 :jshand
 * 描述 : 前台首页
 */
@WebServlet(urlPatterns = "/home")
public class HomeController extends BaseController {


    /**
     * 跳转到首页
     * @param request
     * @param response
     * @throws ServletException
     * @throws IOException
     * @throws SQLException
     */
    @Override
    protected void list(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException {
        request.getRequestDispatcher("/WEB-INF/view/front/index.jsp").forward(request,response);

    }
}
